<!-- TinyMCE -->
<script type="text/javascript" src="{URL_JS}tiny_mce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		editor_selector : "mceEditor",
		
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

		// Theme options
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		// Example content CSS (should be your site CSS)
		content_css : "css/content.css",


		// Replace values for the template plugin
		template_replace_values : {
			username : "aaaa",
			staffid : "1111"
		}
	});
</script>
<!-- /TinyMCE -->
<script type="text/javascript">
var count_otherMethodTrsCurrent = 1;// value innitialize
var product_time_auction = new Array(2,3,4,5,6,7);
<!--var product_icon_highlight = new Array('sc_attention_02.gif','sc_attention_03.gif','sc_attention_04.gif','sc_attention_05.gif','sc_attention_06.gif','sc_attention_07.gif','sc_attention_08.gif');-->
var product_icon_highlight = new Array("",'2','3','4','5','6','7','8');

var product_icon_highlight_text = new Array("選択","美品","非売品"," 限定品","保証書付","全巻セット","正規店購入","産地直送");
var product_time_auction_text = new Array("２日","３日","４日","５日","６日","７日");
var product_set_limit_on_prices = new Array(1,2,3,4,5);
var product_auto_open_aution = new Array(1,2,3,4);
var product_auto_open_aution_text = new Array("０回","１回","２回","３回");
var product_time_auction_end_text = new Array(1,2,3,4,5,6,7,8,9,10,11,0,1,2,3,4,5,6,7,8,9,10,11,0);
var product_time_auction_end_value = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24");
var product_size_after_packet = new Array("","〜60cm","〜70cm","〜80cm","〜100cm","〜110cm","〜120cm","〜140cm","〜150cm","〜160cm","〜170cm");
var product_size_after_packet_text = new Array("その他","~60 cm","~70 cm","~80 cm","~100 cm","~110 cm","~120 cm","~140 cm","~150 cm","~160 cm","~170 cm");
var product_weight_after_packet = new Array("","〜2kg","〜4kg","〜5kg","〜6kg","〜8kg","〜10kg","〜11kg","〜12kg","〜14kg","〜15kg","〜16kg","〜18kg","〜20kg","〜21kg","〜25kg","〜30kg","30kg 〜");
var product_weight_after_packet_text = new Array("その他","~2 kg","~4 kg","~5 kg","~6 kg","~8 kg","~10 kg","~11 kg","~12 kg","~14 kg","~15 kg","~16 kg","~18 kg","~20 kg","~21 kg","~25 kg","~30 kg","30 kg ~");
</script>
{FILE {temp_product_js}}
<script type="text/javascript">
function autoFillCombobox_2(control_id,array_text,array_value,selected_value)
	{
	
		var Num = 0;
		var combobox  = document.getElementById(control_id);
		var last 	  =  (array_value.length-1);
		while (Num < last ) {
		if(Num<10)
			combobox.options[combobox.options.length] = new Option("午前"+array_text[Num]+"時から午前"+array_text[Num+1]+"時",array_value[Num]);
		else {
		if(Num==10)
			combobox.options[combobox.options.length] = new Option("午前"+array_text[Num]+"時から午後"+array_text[Num+1]+"時（正午）",array_value[Num]);
			else 
			if(Num == last-1)
			combobox.options[combobox.options.length] = new Option("午後"+array_text[Num]+"時から午前"+array_text[Num+1]+"時",array_value[Num]);
			else 
				{
					if(Num==11)
					{
						combobox.options[combobox.options.length] = new Option("午後"+array_text[Num]+"時（正午）から午後"+array_text[Num+1]+"時",array_value[Num]);
					}
					else
					combobox.options[combobox.options.length] = new Option("午後"+array_text[Num]+"時から午後"+array_text[Num+1]+"時",array_value[Num]);
				}
			}
				Num++;
			}
			
		for(var i=0;i<combobox.length;i++)
		{
			if(combobox.options[i].value==selected_value)
			{
				combobox.options[i].selected=true;
			}
		}
		
	}   
function autoFillCombobox(control_id,array_text,array_value,selected_value)
	{
		var Num = 0;
		var combobox  = document.getElementById(control_id);
		while (Num < array_value.length ) {
		combobox.options[combobox.options.length] = new Option(array_text[Num],array_value[Num]);
				Num++;
			}
		for(var i=0;i<combobox.length;i++)
		{
			if(combobox.options[i].value==selected_value)
			{
				combobox.options[i].selected=true;
			}
		}
	}
</script>
<div class="top_list_page"></div>
<form name="frmNewProduct" id="frmNewProduct" action="" method="post" enctype="multipart/form-data" >
  <input type="hidden" name="sAction" id="sAction" value="{do_edit_or_add_new}" />
  <input type="hidden" name="pUser" id="sAction" value="{pUser}" />
  <input type="hidden" name="product_description_normal" id="product_description_normal" value="{product_description_normal}"  />
  <div style="font-weight:bold">{PRODUCT.ENTRY_OF_BASIC}</div>
  <table width="100%" border="1" cellspacing="0" cellpadding="5" class="maintable">
    <tr>
      <td class="tdLeft"><strong>{PRODUCT.Code_management}</strong></td>
      <td><!-- BEGIN:div_pro_id_search -->
        <div style="margin-bottom:7px;">
          <input name="product_id_search" id="product_id_search" type="text" size="30" maxlength="30" value="{product_id}" onKeyPress="javascript: check_enter_key_ajaxInfor(event,this); " onBlur="javascript: none_error('empty_prioduct_id'); " />
          {PRODUCT.Enter_product_id}<span style="color:#FF0000" id="empty_prioduct_id"></span> </div>
        <!-- END:div_pro_id_search -->
        <input name="product_id" id="product_id" type="text" size="20" maxlength="20" value="{product_id}" readonly="readonly" />
        <span> （残り20文字）</span><br>
        商品データ管理用の番号になります。20けたまで任意に入力できます。オークションページには反映されません</td>
    </tr>
    <tr>
      <td class="tdLeft"><strong>{PRODUCT.Category} ※</strong></td>
      <td><div class="LABEL_DIV" >カテゴリを選択してください</div>
        <div style="float:left; margin-left:10px;" id="path_category">{path_category}</div>
        <br/>
        <div style="float:left;">{PRODUCT.code_category}
          <input name="product_category_id" type="text" size="30" maxlength="30" value="{product_category_id}" readonly="readonly" />
        </div></td>
    </tr>
    <tr>
      <td class="tdLeft"><strong>key word ※</strong></td>
      <td><div class="">
          <input type="radio" name="product_key_select" value="0" {checked_store0} />
          <input type="text" name="product_key0" value="UnUsed"  size="7" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="1" {checked_store1} />
          <input type="text" name="product_key1" value="{product_key1}" size="7" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="2" {checked_store2} />
          <input type="text" name="product_key2" value="{product_key2}" size="7" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="3" {checked_store3} />
          <input type="text" name="product_key3" value="{product_key3}" size="7" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="4" {checked_store4} />
          <input type="text" name="product_key4" value="{product_key4}" size="7" />
          &nbsp;&nbsp;&nbsp;
          <input type="radio" name="product_key_select" value="5" {checked_store5} />
          <input type="text" name="product_key5" value="{product_key5}" size="7" />
          &nbsp;&nbsp;&nbsp; </div></td>
    </tr>
    <tr>
      <td class="tdLeft"><strong>Shop Name ※</strong></td>
      <td><input name="product_store" id="product_store" type="text" size="7" maxlength="5" value="{product_store}">      </td>
    </tr>
    <tr>
      <td class="tdLeft"><strong>{PRODUCT.Title} ※</strong></td>
      <td><input name="product_title" id="product_title" type="text" size="100" maxlength="30" value="{product_title}">
        <input name="product_id_a" id="product_id_a" type="text" size="10" maxlength="5" value="{product_id}" readonly="readonly" />
        <div class=""></div></td>
    </tr>
    <tr>
      <td class="tdLeft"><strong>{PRODUCT.Key_word_for_commodity}</strong></td>
      <td><input name="product_keyword_commodity" type="text" id="product_keyword_commodity" value="{product_keyword_commodity}" size="50" maxlength="25" /></td>
    </tr>
    <tr>
      <td class="tdLeft"><strong>{PRODUCT.product_description} ※</strong></td>
      <td><div style="float:left; width:100%">
          <!-- BEGIN:div_choose_template -->
          <input type="radio" name="product_template_id" value="{div_choose_template.id}" {div_choose_template.checked} onclick="change_template(this.value)"/>
          {div_choose_template.name}
          <!-- END:div_choose_template -->
        </div>
        <div style="float:left">
          <div class="LABEL_DIV">{PRODUCT.explanation}:</div>
          <textarea name="product_explanation" id="product_explanation" class="mceEditor" style="width:100%; height:350px;">
             <!-- BEGIN:div_template_ex -->
             {FILE {file_temp_ex}} 
             <!-- END:div_template_ex -->
             {product_explanation}</textarea>
        </div>
        <div style="float:left">
          <div class="LABEL_DIV">{PRODUCT.size}
            <!-- BEGIN:PARRENT_ATTRIBUTE -->
            <label>
            <input type="radio" name="product_attribute" value="{PARRENT_ATTRIBUTE.at_id}" {PARRENT_ATTRIBUTE.checked} onclick="change_size(this.value)">
            {PARRENT_ATTRIBUTE.at_name}</label>
            &nbsp;
            <!-- END:PARRENT_ATTRIBUTE -->
          </div>
          <div id="div_product_size" style="float:left">
            <textarea name="product_size" id="product_size" class="mceEditor" style="width:100%; height:350px;">
             <!-- BEGIN:div_template_size -->
             {FILE {file_temp_size}} 
             <!-- END:div_template_size -->
             {product_size}</textarea>
          </div>
        </div>
        <div style="float:left">
          <div class="LABEL_DIV" >{PRODUCT.rank}
            <input type="radio" name="product_rank_name" value="damage" {div_rank_name.checked} onclick="change_rank(this.value);" />
            {PRODUCT.Damage}
            <!-- BEGIN:div_rank_name -->
            <input type="radio" name="product_rank_name" value="{div_rank_name.value}" {div_rank_name.checked} onclick="change_rank(this.value);" />
            {div_rank_name.name}
            <!-- END:div_rank_name -->
          </div>
          <div class="LABEL_DIV" >{PRODUCT.Condition}
            <!-- BEGIN:div_condition -->
            <input type="radio" name="product_condition" value="{div_condition.value}" {div_condition.checked} onclick="change_condition(this.value);" />
            {div_condition.name}
            <!-- END:div_condition -->
          </div>
          <textarea name="product_rank" id="product_rank" class="mceEditor" style="width:100%; height:350px;">{product_rank}<!-- BEGIN:div_template_rank -->
			{FILE {file_temp_rank}}
               <!-- END:div_template_rank -->
			 </textarea>
          <div id="div_rank_temp" style="display:none">{product_rank_temp}</div>
          <div id="div_rank_dagame_temp" style="display:none">
            <!-- BEGIN:div_template_rank_dagame -->
            {dagame_file}
            <!-- END:div_template_rank_dagame -->
          </div>
        </div>
        <div style="float:left">
          <div class="LABEL_DIV" >{PRODUCT.note}</div>
          <textarea name="product_note" id="product_note" class="mceEditor" style="width:100%; height:350px;">
            <!-- BEGIN:div_template_note -->
            {FILE {file_temp_note}}
            <!-- END:div_template_note -->
            {product_note}</textarea>
        </div></td>
    </tr>
    <Tr>
      <Td class="tdLeft"></Td>
      <td><input name="product_description_swich" type="radio" value="1" id="product_description_swich_1" onClick="javascript: change_tab('mobile_version_des_div_disable','mobile_version_des_div_enable');" {checked_product_description_swich_1} >
        {PRODUCT.note_mobile}<br>
        <input name="product_description_swich" type="radio" value="0" id="product_description_swich_0" onClick="javascript: change_tab('mobile_version_des_div_enable','mobile_version_des_div_disable');"  {checked_product_description_swich_0}>
        {PRODUCT.note_mobile_2}
        <div id = "mobile_version_des_div_enable">
          <textarea name="product_description_on_mobile" id="product_description_on_mobile" cols="50" rows="7" class="mceEditor">{product_description_on_mobile}</textarea>
        </div>
        <div id = "mobile_version_des_div_disable" style="display:none;background:#F1F1F1;">
          <div style="background:#F1F1F1;  margin-top:10px;" >
            <textarea name="product_description_on_mobile_unactive" id="product_description_on_mobile_unactive" cols="50" rows="7">{product_description_on_mobile_unactive}</textarea>
          </div>
        </div></td>
    </Tr>
    <tr>
      <td height="53" class="tdLeft">{PRODUCT.product_prices_start}<strong>※</strong></td>
      <td><input name="product_prices_start" id="product_prices_start" type="text" size="20"  onkeypress="javascript: return numbersonly(event,this,20)" value="{product_prices_start}" />
        {PRODUCT.YEN}</td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Price_Fasteners}</td>
      <td><input type="text" name="product_price_fastener" id="product_price_fastener" value="{product_price_fastener}"  onkeypress="javascript: return numbersonly(event,this,20)" />{PRODUCT.YEN}</td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Qty}<strong>※</strong></td>
      <td><input type="text" name="product_qty" id="product_qty" size="10" maxlength="2" onKeyPress="javascript: return numbersonly(event,this,2)" value="{product_qty}">
        個（1個～99個）<br>
        <input name="product_person" type="checkbox" value="1" {checked_product_person}>
        {PRODUCT.Person}
        <select name="product_set_limit_on_prices" id="product_set_limit_on_prices" style="width:50px;">
          <script language="javascript" type="text/javascript" >
    autoFillCombobox("product_set_limit_on_prices",product_set_limit_on_prices,product_set_limit_on_prices,'{product_set_limit_on_prices}');
	</script>
        </select>
        {PRODUCT.up_to}</td>
    </tr>
    <tr>
      <td class="tdLeft">入札個数制限<strong>※</strong></td>
      <td><select name="product_periods" id="product_periods" style="width:20px">
          <option value="" {product_periods_checked1}></option>
          <option value="1" {product_periods_checked1}>1</option>
          <option value="2" {product_periods_checked2}>2</option>
          <option value="3" {product_periods_checked3}>3</option>
          <option value="4" {product_periods_checked4}>4</option>
          <option value="5" {product_periods_checked5}>5</option>
        </select>      </td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Auction_period}<strong>※</strong></td>
      <td><select name="product_time_auction" id="product_time_auction">
          <script language="javascript" type="text/javascript" >
    autoFillCombobox("product_time_auction", product_time_auction_text,product_time_auction,'{product_time_auction}');
	</script>
        </select></td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Time_auction_end}<strong>※</strong></td>
      <td><select name="product_time_auction_end" id="product_time_auction_end">
          <script language="javascript" type="text/javascript" >
 	   autoFillCombobox_2("product_time_auction_end", product_time_auction_end_text,product_time_auction_end_value,'{product_time_auction_end}');
	</script>
        </select></td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Shipping_Area}<strong>※</strong></td>
      <td><label>
        <select name="product_province_id" id="product_province_id" >
          <option value="">{PRODUCT.Select_province}</option>
          <!-- BEGIN:PROVINCE -->
          <option value="{PROVINCE.province_code}" {PROVINCE.checked_province_code} >{PROVINCE.province_name}</option>
          <!-- END:PROVINCE -->
        </select>
        </label>
        <label> {PRODUCT.select_city}:
        <input type="text" name="product_shipping_area" id="product_shipping_area" value="{product_shipping_area}"  />
        </label></td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.who_bear}</td>
      <td><input type="radio" name="product_who_bear_the_CsOfTr" id="product_who_bear_the_CsOfTr_1" value="1"  {checked_product_who_bear_the_CsOfTr_1} >
        <label>{PRODUCT.Who_wins}</label>
        <br>
        <input type="radio" name="product_who_bear_the_CsOfTr" id="product_who_bear_the_CsOfTr_0" value="0" {checked_product_who_bear_the_CsOfTr_0} >
        <label>{PRODUCT.owner_auction}</label>      </td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.payment_before_after}<strong>※</strong></td>
      <td><input name="product_payment_of_goods_boa" type="radio" value="1" checked {checked_product_payment_of_goods_boa_1}>
        {PRODUCT.payment_before}<br>
        <input name="product_payment_of_goods_boa" type="radio" value="0" {checked_product_payment_of_goods_boa_0}>
        {PRODUCT.payment_after}</td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Payment_method}</td>
      <td><input name="product_payment_method" type="checkbox" value="1" onClick="show_hide_div_bank(this)" {checked_product_payment_method} >
        {PRODUCT.Bank_transfer}<br>
        <!-- <div style="color:#CCCCCC" id="bank_name_txt_div">{PRODUCT.enter_name_bank}</div>-->
        <div class="bank_name_div" style="display:{bank_name_div_display}" id ="bank_name_div">
          <!-- BEGIN: parent_div_product_bank-->
          <input type="hidden" id="now_div_blank_id" value="{now_div_blank_id}"/>
          <!-- BEGIN: div_product_bank-->
          <div style="display:{div_product_bank.display}" id="div_bank_{div_product_bank.num}">
            <input name="product_bank[]" id="product_bank_{div_product_bank.num}" type="text" size="50" value="{div_product_bank.product_bank}" maxlength="15"/>
            ({PRODUCT.max15char}) </div>
          <!-- END: div_product_bank-->
          <br/>
          <input type="button" value="{FORM.add_more}" id="btn_add_more_bank_txtbox" onclick="add_more_bank_txtbox();"/>
          <!-- END: parent_div_product_bank-->
        </div>
        <hr style="width:100%" color="#CCCCCC"/>
        <br/>
        <input name="product_send_cash" type="checkbox"  {checked_product_send_cash}>
        {PRODUCT.Send_cash}<br>
        <input name="product_POD" type="checkbox"  {checked_product_POD}>
        {PRODUCT.POD}<br>
        <input name="product_credit_card" type="checkbox"  {checked_product_credit_card} >
        {PRODUCT.Credit_cards}<br>
        {PRODUCT.other_method_payment} <br/>
        <div id="other_payment_div">
          <!-- BEGIN:parent_div_product_other_payment_method -->
          <input type="hidden" id="now_other_method_transfer" value="{now_other_method_transfer}"/>
          <!-- BEGIN:div_product_other_payment_method -->
          <div style="display:{div_product_other_payment_method.display}" id="div_other_payment_method_{div_product_other_payment_method.num}">
            <input  name="product_other_payment_method[]" id="product_other_payment_method_{div_product_other_payment_method.num}" type="text" size="50" maxlength="15" value="{div_product_other_payment_method.product_other_payment_method}" >
            ({PRODUCT.max15char}) </div>
          <!-- END:div_product_other_payment_method -->
          <!-- END:parent_div_product_other_payment_method -->
        </div>
        <input type="button" value="{FORM.add_more}" id="btn_add_more_other_payment_txtbox" onclick="add_more_other_payment_txtbox();"/>      </td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Product_Status}<strong>※</strong></td>
      <td><p>
          <label>
          <input type="radio" name="product_product_status" value="1" id="product_product_status_1" {product_product_status_SecondHand} >
          {PRODUCT.SecondHand}</label>
          <br>
          <label>
          <input type="radio" name="product_product_status" value="2" id="product_product_status_2" {product_product_status_New}>
          {PRODUCT.New}</label>
          <br>
          <label>
          <input type="radio" name="product_product_status" value="3" id="product_product_status_3" {product_product_status_Other}>
          {PRODUCT.Other}</label>
          <br>
          {PRODUCT.other_method_payment_comment}<br>
          <input name="product_product_status_comment" type="text" size="50" maxlength="250" value="{product_product_status_comment}">
          ({PRODUCT.max15char}) </p></td>
    </tr>
    <tr>
      <td class="tdLeft">{PRODUCT.Ability}</td>
      <td><p>
          <label>
          <input type="radio"  name="product_ability_to_return_product" value="0" id="product_ability_to_return_product_0" {checked_ability_to_return_product_0}>
          {PRODUCT.cannot}</label>
          <br>
          <label>
          <input type="radio" name="product_ability_to_return_product" value="1" id="product_ability_to_return_product_1" {checked_ability_to_return_product_1}>
          {PRODUCT.can}</label>
          <br>
          {PRODUCT.Ability_comment} <br/>
          <input name="product_ability_to_return_product_comment" type="text" value="{product_ability_to_return_product_comment}"size="50" maxlength="30">
          ({PRODUCT.max30char}) </p></td>
    </tr>
    <tr style="border-bottom: #CCCCCC solid 1px;">
      <td colspan="2" style="background:#F1F1F1; height:30px; "><input name="save_btt" type="button" value="{FORM.save}" onClick="javascript: {toobar_save}" />
        <a class="toolbar" href="{toobar_cancel}" title="cancel">
        <input name="cancel_btt" type="button" value="{FORM.cancel}" onClick='javascript: window.location.href = "{toobar_cancel}";' />
        </a> </td>
    </tr>
  </table>
  <div style="height:30px; float:left; position:relative">&nbsp;</div>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="maintable">
    <tr>
      <td colspan="2" class="tdHeader" >{PRODUCT.Upload_photos}</td>
    </tr>
    <tr>
    
    <td class="tdLeft_2" >{PRODUCT.Upload_photos}</td>
    <td><!--
	  	<div class="LABEL_DIV" > 画像データ選択から画像を選択してください</div>
        <div style="text-align:center" >
          <input name="upload_images" type="button" value="{FORM.upload_images}" onClick="redirec_uploadImage();"/>
        </div>
		-->
      <div class="LABEL_DIV" >{PRODUCT.image_note}</div>
      <br/>
      <table width="100%" border="1" cellspacing="2" cellpadding="3"  style="border:#B8B8B8 solid 1px" class="maintable">
        <thead>
          <tr>
            <td>画像1</td>
            <td>画像2</td>
            <td>画像3</td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td width= "250" height="200" align="center"><iframe align="top" scrolling="NO" frameborder="NO" width= "250" height="200"   src='{URL_SITE}includes/ThinUpload/applet.php?sID={get_id_product}&xID=1' name='objec_up_image1' > </iframe></td>
            <td width= "250" height="200" align="center"><iframe align="top" scrolling="NO" frameborder="NO" width= "250" height="200"   src='{URL_SITE}includes/ThinUpload/applet.php?sID={get_id_product}&xID=2' name='objec_up_image2' ></iframe></td>
            <td width= "250" height="200" align="center"><iframe align="top" scrolling="NO" frameborder="NO" width= "250" height="200"   src='{URL_SITE}includes/ThinUpload/applet.php?sID={get_id_product}&xID=3' name='objec_up_image3' ></iframe></td>
          </tr>
          <tr>
            <td colspan="3"><div id="ELEMENT_TO_PRINT_IMAGE" >
                <!-- BEGIN:CURRENT_IMAGE_PRODUCT -->
                <div>
                  <!-- BEGIN:IMAGE_PRODUCT -->
                  <div style="float:left; position:relative; width:30%;padding:7px; margin:2px;">
                    <!--{IMAGE_PRODUCT.pictures} -->
                    <span>【任意】コメント （残り4.5文字）： </span> <br/>
                    <input name="product_pictures_comment_{IMAGE_PRODUCT.i}" type="text" size="33" value="{IMAGE_PRODUCT.pictures_comment}" />
                  </div>
                  <!-- END:IMAGE_PRODUCT -->
                </div>
                <!-- END:CURRENT_IMAGE_PRODUCT -->
              </div></td>
          </tr>
        </tbody>
        
      </table></td>
    </tr>
    
    <tr>
      <td colspan="2" style="background:#F1F1F1; height:30px; "><input name="save_btt" type="button" value="{FORM.save}" onClick="javascript: {toobar_save}" />
        <a class="toolbar" href="{toobar_cancel}" title="cancel">
        <input name="cancel_btt" type="button" value="{FORM.cancel}" onClick='javascript: window.location.href = "{toobar_cancel}";' />
        </a> </td>
    </tr>
  </table>
  <div style="height:30px; float:left; position:relative">&nbsp;</div>
</form>
<form action="?sMod=upload_image_product" method="post" enctype="multipart/form-data"  name="redirec_to_upload_image" id="redirec_to_upload_image" >
  <input name="pictures_product_id" id="pictures_product_id" type="hidden" value="{product_id}" />
</form>
<script language="javascript" type="text/javascript">
try{
	var getTableId = document.getElementById('tableTab');
	var getCell = getTableId.getElementsByTagName('TH');
}
catch(e){
}

function changeTab(tab_show,tab_non,thiscell,value) {
	  for(i=0;i<getCell.length;i++) {
	   getCell[i].style.backgroundColor = "#EFF2F8";
	   getCell[i].style.color = "#1546A7";
	   thiscell.style.backgroundColor = "#C3C2C2" ;
	   thiscell.style.color = "#FFFFFF" ;
	   document.getElementById(tab_show).style.display = "block";
	   document.getElementById(tab_non).style.display = "none";
	   set_normal_Or_htmlTagDes(value);
	
			}
	}
function set_normal_Or_htmlTagDes(value){
	document.getElementById("product_description_normal").value = value;
}
function setTabInitialize(){
 for(i=0;i<getCell.length;i++) {
	   getCell[i].style.backgroundColor = "#EFF2F8";
	   getCell[i].style.color = "#1546A7";
	   getCell[0].style.backgroundColor = "#C3C2C2" ;
	   getCell[0].style.color = "#FFFFFF" ;
	   }
	  document.getElementById("tabber_Enter_HTML_tag").style.display = "none";
	  document.getElementById("tabber_Enter_normal").style.display = "block";
	 }
   //setTabInitialize();
   set_normal_Or_htmlTagDes(1);
function setTabInitialize_Edit(tab_show,tab_non,cell,value) {
	  for(i=0;i<getCell.length;i++) {
	   getCell[i].style.backgroundColor = "#EFF2F8";
	   getCell[i].style.color = "#1546A7";
	   getCell[cell].style.backgroundColor = "#C3C2C2" ;

	   getCell[cell].style.color = "#FFFFFF" ;
	   document.getElementById(tab_show).style.display = "block";
	   document.getElementById(tab_non).style.display = "none";
	   set_normal_Or_htmlTagDes(value);
	
			}
	}
/*
*Innitialize when edit
*Created by: Tienhv
*Date; 28th April
*/
//{setTabInitialize}

{enableOrDisableDivTag}
{product_set_limit_on_prices_s}
{product_time_auction_s}
{product_time_auction_end_s}
{product_auto_open_aution_s}
{product_size_after_packet_s}
{product_weight_after_packet_s}
{product_icon_highlight_s}
{enableOrDisableDivTag_setLink}
{setInitializeAddNew}
function redirec_uploadImage(){
	var product_id = document.getElementById('product_id').value;
	var frm = document.getElementById('redirec_to_upload_image');
	frm.pictures_product_id.value = product_id;
	frm.submit();
	}
</script>
<script type="text/javascript">
{change_tab}
</script>
<!-- BEGIN : loading_default-->
<script type="text/javascript">
window.onload = function(){
	change_template('{default_temp}');
	var frm=document.frmNewProduct;
	if(frm.product_qty.value==""){
		frm.product_qty.value=1;
	}
	// day 
	var selected=false;
	var len=frm.product_time_auction.options.length;
	for(var i=0;i<len;i++){
		if(frm.product_time_auction.options[i].selected=="selected"){
			selected=true;
			break;
		}
	}
	if(!selected){
		frm.product_time_auction.options[len-1].selected="selected";
	}
	
	// product_time_auction_end
	selected=false;
	len=frm.product_time_auction_end.options.length;
	for(var i=0;i<len;i++){
		if(frm.product_time_auction_end.options[i].selected=="selected"){
			selected=true;
			break;
		}
	}
	if(!selected){
		frm.product_time_auction_end.options[len-1].selected="selected";
	}
	
	//  product_province_id
	<!-- BEGIN: default_province_code-->
		len=frm.product_province_id.options.length;
		for(var i=0;i<len;i++){
			if(frm.product_province_id.options[i].value=="14"){
				frm.product_province_id.options[i].selected="selected";
				break;
			}
		}
	<!-- END: default_province_code-->
	
	// 決済方法　商品代引
	if(frm.product_send_cash.checked == "" && frm.product_POD.checked == "" && frm.product_credit_card.checked == ""){
		frm.product_POD.checked ="checked";
	}
	
	//
	//     市区町村
	if(frm.product_shipping_area.value==""){
		frm.product_shipping_area.value="横浜市";
	}
	if(frm.product_prices_start.value==""){
		frm.product_prices_start.value="1";
	}
}
</script>
<!-- END : loading_default-->
<p>&nbsp;</p>